package cn.tcmp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods_detail")
public class Detail {

    /*
FieldTypeComment
idint(11)编号
sordIdint(11)分类编号
namevarchar(50)商品名称
addressvarchar(50)产地
pricedouble单价
createDatedatetime生产日期
remainingint(11)剩余数量*/

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer sortId;
    private String name;
    private String address;
    private Double price;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    private Integer remaining;


}
